<?php
/**
 * Created by PhpStorm.
 * User: Shroom Ari
 * Date: 11/20/14
 * Time: 11:26 AM
 */
class Mpromotiondetail extends MY_Model{
    public $table= 'promotion_detail';

    function getPromotionDetailById($id)
    {
        $query = $this->db->query("select product_name from promotion_detail, product where promotion_detail.product_id = product.product_id and promotion_id = $id");
        return $query->result_array();
    }
}